package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.autocinfigure.ExampleService;

@RestController
@SpringBootApplication
public class BootUseDemoStarterApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootUseDemoStarterApplication.class, args);
	}
	
	@Autowired
    private ExampleService exampleService;

    @GetMapping("/input")
    public String input(String word){
        return exampleService.wrap(word);
    }
}
